<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="br.ufba.lasid.mda.client.*"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>
        <%
            JiTFailureDetectorService_Service ws = new JiTFailureDetectorService_Service();
            
            JiTFailureDetectorService failureDetector = ws.getJiTFailureDetectorServicePort();
            
            String ret = failureDetector.hello("Felipe");
            out.print("JiTFailureDetectorWebService.hello() = " + ret);
            out.print("<br />");
            
            ret = failureDetector.register("vm@192.168.188.15", true);
            out.print("JiTFailureDetectorWebService.register(\"vm@192.168.188.15\", true) = " + ret);
            out.print("<br />");
            
            ret = failureDetector.buildup();
            out.print("JiTFailureDetectorWebService.buildup() = " + ret);
            out.print("<br />");
            
            ret = failureDetector.setPeriod(20000L);
            out.print("JiTFailureDetectorWebService.setPeriod(20000L) = " + ret);
            out.print("<br />");
            
            ret = failureDetector.setTimeout(10000L);
            out.print("JiTFailureDetectorWebService.setTimeout(10000L) = " + ret);
            out.print("<br />");
            
            ret = failureDetector.startup();
            out.print("JiTFailureDetectorWebService.startup = " + ret);
            out.print("<br />");
        %>
    </body>
</html>